package com.wkk.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wkk.dao.QuestionDao;
import com.wkk.entity.Question;
import com.wkk.service.QuestionService;

@Service
public class QuestionServiceImpl implements QuestionService {
	@Resource
	private QuestionDao questionDao;

	@Override
	public int add(Question question) {

		return questionDao.add(question);
	}

	@Override
	public int update(Map<String, Object> map) {

		return questionDao.update(map);
	}

	@Override
	public List<Question> list(Map<String, Object> map) {

		return questionDao.list(map);
	}

	@Override
	public Question findById(Integer id) {
		// TODO Auto-generated method stub
		return questionDao.findById(id);
	}

}
